package com.zwps.biz.controller.http;


import com.zwps.biz.api.model.vo.reservoirInfo.ReservoirInfoVo;
import com.zwps.biz.api.model.vo.reservoirwaterlevel.ReservoirWaterLevelVO;
import com.zwps.biz.domain.service.ReservoirInfoService;
import com.zwps.biz.domain.service.ReservoirWaterLevelService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * @author dzc
 * @date 2024/9/18 19:59
 * @description
 */

@RestController
@Validated
@RequestMapping("brief/water_leave")
public class ReservoirWaterLevelController {

    @Autowired
    private ReservoirWaterLevelService service;

    @Tag(name = "工程概况")
    @Operation(summary = "获取水库水位与面积库容关系")
    @GetMapping("relation/{rscd}")
    public List<ReservoirWaterLevelVO> getReservoirWaterLevel( @NotBlank @Valid @PathVariable String rscd) {
        return  service.getReservoirWaterLevel(rscd);
    }


}
